import request from '@/utils/request'

// 查询端口政策列表
export function listSupplierPolicy(query) {
  return request({
    url: '/baseMain/supplierPolicy/list',
    method: 'get',
    params: query
  })
}

// 查询端口政策详细
export function getSupplierPolicy(id) {
  return request({
    url: '/baseMain/supplierPolicy/' + id,
    method: 'get'
  })
}

// 新增端口政策
export function addSupplierPolicy(data) {
  return request({
    url: '/baseMain/supplierPolicy',
    method: 'post',
    data: data
  })
}

// 修改端口政策
export function updateSupplierPolicy(data) {
  return request({
    url: '/baseMain/supplierPolicy',
    method: 'put',
    data: data
  })
}

// 删除端口政策
export function delSupplierPolicy(id) {
  return request({
    url: '/baseMain/supplierPolicy/' + id,
    method: 'delete'
  })
}
